import { createModule } from '@/router/type'
import LayoutView from '@/layout/LayoutView.vue'
import { registerComponentName } from '@/utils'

export default createModule([
  {
    path: '/share',
    redirect: '/share/device-list',
    component: LayoutView,
    meta: {
      icon: import('~icons/menu/share'),
      title: '分享'
    },
    children: [
      {
        path: 'device-list',
        name: 'ShareDeviceList',
        meta: { title: '设备分享' },
        component: () => import('@views/share/device-share/device-share.vue')
      }
    ]
  }
], true)
